class_name PlayerTest extends CharacterBody2D

@onready var server_synchronizer: MultiplayerSynchronizer = $ServerSynchronizer

@onready var player_input: MultiplayerSynchronizer = $PlayerInput

const SPEED = 500.0
const JUMP_VELOCITY = -400.0

@export var peer_id := 1 :
	set(id):
		peer_id = id
		$PlayerInput.set_multiplayer_authority(id)



func _physics_process(_delta: float) -> void:
	move()


func move() -> void:
	velocity = SPEED * player_input.dir
	move_and_slide()
